.class public Lcom/xingbook/ui/b/p;
.super Lcom/xingbook/ui/b/a;


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "ViewConstructor"
    }
.end annotation


# instance fields
.field private n:[Landroid/widget/ImageView;


# direct methods
.method public constructor <init>(Landroid/app/Activity;Lcom/xingbook/c/o;Lcom/xingbook/d/d;)V
    .locals 0

    invoke-direct {p0, p1, p2, p3}, Lcom/xingbook/ui/b/a;-><init>(Landroid/app/Activity;Lcom/xingbook/c/o;Lcom/xingbook/d/d;)V

    return-void
.end method

.method private a()V
    .locals 3

    iget-object v0, p0, Lcom/xingbook/ui/b/p;->n:[Landroid/widget/ImageView;

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    iget-object v1, p0, Lcom/xingbook/ui/b/p;->n:[Landroid/widget/ImageView;

    array-length v1, v1

    if-lt v0, v1, :cond_1

    :cond_0
    return-void

    :cond_1
    iget-object v1, p0, Lcom/xingbook/ui/b/p;->n:[Landroid/widget/ImageView;

    aget-object v1, v1, v0

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/xingbook/ui/b/p;->n:[Landroid/widget/ImageView;

    aget-object v1, v1, v0

    const/4 v2, 0x4

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    :cond_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method


# virtual methods
.method public a(Lcn/a/a/c/a;)V
    .locals 9

    invoke-super {p0, p1}, Lcom/xingbook/ui/b/a;->a(Lcn/a/a/c/a;)V

    check-cast p1, Lcn/a/a/c/j;

    invoke-virtual {p1}, Lcn/a/a/c/j;->n()I

    move-result v2

    invoke-virtual {p0, v2}, Lcom/xingbook/ui/b/p;->b(I)Lcn/a/a/b/b;

    move-result-object v0

    check-cast v0, Lcn/a/a/b/i;

    invoke-virtual {v0}, Lcn/a/a/b/i;->m()[Lcn/a/a/d/g;

    move-result-object v3

    invoke-virtual {v0}, Lcn/a/a/b/i;->a()I

    move-result v0

    new-array v0, v0, [Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/xingbook/ui/b/p;->n:[Landroid/widget/ImageView;

    const/4 v0, 0x0

    :goto_0
    array-length v1, v3

    if-lt v0, v1, :cond_0

    return-void

    :cond_0
    iget-object v1, p0, Lcom/xingbook/ui/b/p;->g:Lcom/xingbook/c/e;

    invoke-virtual {v1}, Lcom/xingbook/c/e;->b()Z

    move-result v1

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/xingbook/ui/b/p;->g:Lcom/xingbook/c/e;

    aget-object v4, v3, v0

    invoke-virtual {v4}, Lcn/a/a/d/g;->c()Lcn/a/a/d/a;

    move-result-object v4

    invoke-virtual {v1, v4}, Lcom/xingbook/c/e;->a(Lcn/a/a/d/a;)Lcn/a/a/d/a;

    move-result-object v1

    :goto_1
    iget-object v4, p0, Lcom/xingbook/ui/b/p;->d:Lcom/xingbook/d/a;

    aget-object v5, v3, v0

    invoke-virtual {v5}, Lcn/a/a/d/g;->a()I

    move-result v5

    invoke-virtual {v4, v5}, Lcom/xingbook/d/a;->j(I)Landroid/graphics/Bitmap;

    move-result-object v4

    if-eqz v4, :cond_2

    iget-object v5, p0, Lcom/xingbook/ui/b/p;->n:[Landroid/widget/ImageView;

    new-instance v6, Landroid/widget/ImageView;

    iget-object v7, p0, Lcom/xingbook/ui/b/p;->a:Landroid/content/Context;

    invoke-direct {v6, v7}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    aput-object v6, v5, v0

    iget-object v5, p0, Lcom/xingbook/ui/b/p;->n:[Landroid/widget/ImageView;

    aget-object v5, v5, v0

    invoke-virtual {v5, v4}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    iget-object v4, p0, Lcom/xingbook/ui/b/p;->n:[Landroid/widget/ImageView;

    aget-object v4, v4, v0

    sget-object v5, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    iget-object v4, p0, Lcom/xingbook/ui/b/p;->n:[Landroid/widget/ImageView;

    aget-object v4, v4, v0

    const/4 v5, 0x4

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v4, p0, Lcom/xingbook/ui/b/p;->n:[Landroid/widget/ImageView;

    aget-object v4, v4, v0

    iget v5, v1, Lcn/a/a/d/a;->c:I

    iget v6, v1, Lcn/a/a/d/a;->d:I

    iget v7, v1, Lcn/a/a/d/a;->c:I

    iget v8, v1, Lcn/a/a/d/a;->a:I

    add-int/2addr v7, v8

    iget v8, v1, Lcn/a/a/d/a;->d:I

    iget v1, v1, Lcn/a/a/d/a;->b:I

    add-int/2addr v1, v8

    invoke-virtual {v4, v5, v6, v7, v1}, Landroid/widget/ImageView;->layout(IIII)V

    iget-object v1, p0, Lcom/xingbook/ui/b/p;->n:[Landroid/widget/ImageView;

    aget-object v1, v1, v0

    invoke-virtual {p0, v1, v2}, Lcom/xingbook/ui/b/p;->addView(Landroid/view/View;I)V

    :goto_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    aget-object v1, v3, v0

    invoke-virtual {v1}, Lcn/a/a/d/g;->c()Lcn/a/a/d/a;

    move-result-object v1

    goto :goto_1

    :cond_2
    iget-object v1, p0, Lcom/xingbook/ui/b/p;->n:[Landroid/widget/ImageView;

    const/4 v4, 0x0

    aput-object v4, v1, v0

    goto :goto_2
.end method

.method public e(I)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/ui/b/p;->n:[Landroid/widget/ImageView;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/b/p;->n:[Landroid/widget/ImageView;

    aget-object v0, v0, p1

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/b/p;->n:[Landroid/widget/ImageView;

    aget-object v0, v0, p1

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    :cond_0
    return-void
.end method

.method public i()V
    .locals 0

    invoke-super {p0}, Lcom/xingbook/ui/b/a;->i()V

    invoke-direct {p0}, Lcom/xingbook/ui/b/p;->a()V

    return-void
.end method

.method public k()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method
